home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctjja86.arc
/
SPEED101.PRO
< prev
next >
Wrap
Text File
|
1985-11-13
|
396b
|
18 lines
/* Speed test with a 101-rule rule base */
f(1).
f(2).
f(3).
f(4).
. /* The program as actually tested */
. /* contained all 100 rules of this form. */
. /* To run this program, fill in the */
. /* intervening rules in the form "f(x)". */
f(97).
f(98).
f(99).
f(100).
test(X) :- Y is X-1, f(X), test(Y).
?- write('Start...'), test(100).